<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="/jquery_lib/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/js/list.js"></script>
<title>List</title>
</head>
<body>
	<fieldset>
		<legend>数据查询</legend> 
		<s:form action="user_list" id="search">
			<s:hidden name="query.currentPage"></s:hidden>
			<s:textfield name="query.keyWords" label="关键字"></s:textfield>
			<s:textfield name="query.minSalary" label="最低工资"></s:textfield>
			<s:textfield name="query.maxSalary" label="最高工资"></s:textfield>
			<input type="button" onclick="newSearch()" value="查询"/>
		</s:form>
	</fieldset>
	<fieldset>
		
		<legend>分布信息</legend>
		<a href="javascript:goPage(<s:property value="1"/>)"/>首页</a>
		<a href="javascript:goPage(<s:property value="#resPage.prePage" />)"/>上一页</a>
		<a href="javascript:goPage(<s:property value="#resPage.nextPage"/>)">下一页</a>
		<a href="javascript:goPage(<s:property value="#resPage.totalPage" />)"/>末页</a>
	</fieldset>
	<table border="1" width="100%" cellpadding="5" cellspacing="0">
		<tr>
			<td>序号</td>
			<td>姓名</td>
			<td>薪水</td>
			<td>操作</td>
		</tr>
		<s:iterator value="#resPage.result" status="status">
		<tr id="<s:property value="#status.count"/>">
			<td name="one" width="20%"><s:property value="#status.count"/></td>
			<td name="two" width="20%"><s:property value="name"/></td>
			<td name="three" width="20%"><s:property value="salary"/></td>
			<td name="four" width="20%">
			<a href="javascript:edit(<s:property value="id"/>,<s:property value="#status.count"/>)">编辑</a>	
			<a href="javascript:remove(<s:property value="id"/>)" >删除</a>
			<a disabled="disabled" href="javascript:cancle(<s:property value="id"/>,<s:property value="#status.count"/>)">取消</a>
			</td>
		</tr>
		</s:iterator>
	</table>
</body>
</html>